#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021-12-9 17:01
# @Author : huabao.tan
# @File : power_excel.py
# @Software: PyCharm

from power.objdect_key import *


class WriteExcel(CreatExcel, Power, Name, Id):

    def id_name(self, index, row):
        CreatExcel.sheet_row_col_value(self, index, row, 1, Id.creat_id(self))
        CreatExcel.sheet_row_col_value(self, index, row, 2, Name.creat_name(self))

    def one_index(self, row):
        CreatExcel.sheet_row_col_value(self, 0, row, 3, Power.rank(self))
        CreatExcel.sheet_row_col_value(self, 0, row, 4, Power.position(self))
        CreatExcel.sheet_row_col_value(self, 0, row, 5, Power.duty(self))
        CreatExcel.sheet_row_col_value(self, 0, row, 6, Power.post(self))


if __name__ == '__main__':
    w = WriteExcel()
    w.id_name(0, 2)
    w.one_index(2)
